﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_DeleteTravelPlanControl : System.Web.UI.UserControl
{
    ListAndProcessData ws = new ListAndProcessData();
    private String id = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        id = Request.QueryString["idlo"].ToString();
        bool a = false;
        a = ws.DeleteTravelPlan(int.Parse(id));
        if (a == true)
        {
            Response.Redirect("../Admin/ShowTravelPlan_Admin.aspx");

        }
        else
        {
            Response.Redirect("Default3.aspx");
        }
    }
}